<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="theme-color">
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>分享家</title>
    <link rel="stylesheet" type="text/css" href="../lib/css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/css/mui.css"/>
    <link rel="stylesheet" href="../css/util.css">
    <script src="http://at.alicdn.com/t/font_371407_7omis3wrfr7tx1or.js"></script>
</head>

<link rel="stylesheet" href="../css/add_check_in_person.css">
<body>
<header class="fxj-header">
    <span class="back" onclick="back()">
        <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-jiantou"></use>
        </svg>
    </span>
    <h1 class="fxj-title">宾客管理</h1>
</header>
<main id="main">
    <div class="add-guy-btn" onclick="go('edit_check_in_person.html')">
        <div>
            <svg class="icon">
                <use xlink:href="#icon-jia1"></use>
            </svg>
            添加入住人
        </div>
    </div>

    <ul class="guys-list">
        <li class="guys-item line-transverse" v-for="guy of guysList" @click="modifyGuys(guy.guest_info_id,guy.gid)">
            <svg class="icon icon-checkbox" :class="{active:guy.selected}" v-if="show.add" @click.capture.stop="selectGuy(guy)">
                <use xlink:href="#icon-checkbox1" v-show="guy.selected"></use>
                <use xlink:href="#icon-checkbox" v-show="!guy.selected"></use>
            </svg>
            <div class="guys-info">
                <span>{{guy.name}}（{{guy.nation}}）</span>
                <span>{{guy.licence_number}}</span>
            </div>
            <svg class="icon">
                <use xlink:href="#icon-you"></use>
            </svg>
        </li>
    </ul>

    <div v-show="show.add" class="container-add-guy">
        <button class="btn-add-guy" @click="submit">添加</button>
    </div>
</main>
<script type="text/javascript" src="../lib/js/babel-polyfill.js"></script>
<script type="text/javascript" src="../lib/js/vue.js"></script>
<script type="text/javascript" src="../lib/js/mui.js"></script>
<script type="text/javascript" src="../lib/js/jquery.js"></script>
<script type="text/javascript" src="../script/util.js"></script>

<script src="../script/add_check_in_person.js"></script>
</body>
</html>